package com.taotao.portal.service;

import com.taotao.pojo.Item;
import com.taotao.util.TaotaoResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author hong.zheng
 * @Description
 * @date 2018-09-29-17:25
 **/
public interface CartItemService {

    TaotaoResult addCartItem(Long itemId, Integer num, HttpServletRequest request,HttpServletResponse response);

    List<Item> getCartItemsList(HttpServletRequest request);

    TaotaoResult changeItemNum(long itemId, int num, HttpServletRequest request, HttpServletResponse response);

    List<Item> deleteItem(Long itemId, HttpServletRequest request, HttpServletResponse response);
}
